import { Button, Result } from 'antd';
import React from 'react';
import { history } from 'umi';

const NoFoundPage = () => (
  <div className="center" style={{ width: '100%', height: '100%' }}>
    <Result
      status="404"
      title={<span style={{ color: '#fff' }}>404</span>}
      subTitle={<span style={{ color: '#fff' }}>该功能未开放...</span>}
      extra={
        <Button type="text" style={{ color: '#fff' }} onClick={() => history.push('/')}>
          返回首页
        </Button>
      }
    />
  </div>
);

export default NoFoundPage;
